//
//  HeTongPreViewPDFVC.m
//  ReceiptDelivery
//
//  Created by 吕晶 on 2020/9/22.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import "HeTongPreViewPDFVC.h"
#import <WebKit/WebKit.h>

@interface HeTongPreViewPDFVC ()

@property (nonatomic, strong) WKWebView *webView;

@end

@implementation HeTongPreViewPDFVC

-(WKWebView *)webView {
    if (!_webView) {
        _webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, ScreenH - NaviHeight)];
    }
    return _webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.webView];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.filePath]]];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
